<!DOCTYPE html >
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>我的收藏</title>
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>views/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>views/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>views/css/main.css" />
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>views/css/shop.css" />
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>views/css/square/red.css" />
<script type="text/javascript"
	src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript">
	/* function initconfig() {
		setTimeout(function() {
			wx.config({
				debug : false,
				appId : 'wx177d4c8b355354b9',
				timestamp : '1481895233',
				nonceStr : 'Wm3WZYTPz0wzccnW',
				signature : 'ca90b2a297289a473236938d76c4f9cd6633535f',
				jsApiList : [ 'onMenuShareTimeline', 'onMenuShareAppMessage',
						'onMenuShareQQ', 'onMenuShareWeibo',
						'onMenuShareQZone', 'chooseImage', 'previewImage',
						'uploadImage' ]
			});
		}, 1);
		var pblWXShare = true;
		wx.ready(function() {
			setWXShare();
			if (pblWXShare)
				$('.swiper-share').slideDown(1500);

		});
		wx.error(function(res) {

			pblWXShare = false;
		});
	}
	function setWXShare() {
		wx
				.onMenuShareTimeline({
					title : 'U牌玩精油',
					link : 'http://webChat.5288168.com/ShopCenter/ShopHomepage.aspx?State=100008&ReferMemberId=1000083001009177',
					imgUrl : 'http://www.5288168.com:8080/Attachment/Temp/b9d49555-d6bb-4c76-b547-e9c760bee3cb.jpg',
					success : function() {
					},
					cancel : function() {
					}
				});
		wx
				.onMenuShareAppMessage({
					title : 'U牌玩精油',
					desc : 'From italy，50年专注精油，CAAQ国际权威有机认证，CE认证！对于U牌而言，品质是不容触碰的底线，除此之外，一切放开玩！【U牌玩精油】、【U-face】芳疗护肤、【U-WM】私密养护系列，三大系列火爆持续中！',
					link : 'http://webChat.5288168.com/ShopCenter/ShopHomepage.aspx?State=100008&ReferMemberId=1000083001009177',
					imgUrl : 'http://www.5288168.com:8080/Attachment/Temp/b9d49555-d6bb-4c76-b547-e9c760bee3cb.jpg',
					type : '',
					dataUrl : '',
					success : function() {
					},
					cancel : function() {
					}
				});
		wx
				.onMenuShareQQ({
					title : 'U牌玩精油',
					desc : 'From italy，50年专注精油，CAAQ国际权威有机认证，CE认证！对于U牌而言，品质是不容触碰的底线，除此之外，一切放开玩！【U牌玩精油】、【U-face】芳疗护肤、【U-WM】私密养护系列，三大系列火爆持续中！',
					link : 'http://webChat.5288168.com/ShopCenter/ShopHomepage.aspx?State=100008&ReferMemberId=1000083001009177',
					imgUrl : 'http://www.5288168.com:8080/Attachment/Temp/b9d49555-d6bb-4c76-b547-e9c760bee3cb.jpg',
					success : function() {
					},
					cancel : function() {
					}
				});
		wx
				.onMenuShareWeibo({
					title : 'U牌玩精油',
					desc : 'From italy，50年专注精油，CAAQ国际权威有机认证，CE认证！对于U牌而言，品质是不容触碰的底线，除此之外，一切放开玩！【U牌玩精油】、【U-face】芳疗护肤、【U-WM】私密养护系列，三大系列火爆持续中！',
					link : 'http://webChat.5288168.com/ShopCenter/ShopHomepage.aspx?State=100008&ReferMemberId=1000083001009177',
					imgUrl : 'http://www.5288168.com:8080/Attachment/Temp/b9d49555-d6bb-4c76-b547-e9c760bee3cb.jpg',
					success : function() {
					},
					cancel : function() {
					}
				});
		wx
				.onMenuShareQZone({
					title : 'U牌玩精油',
					desc : 'From italy，50年专注精油，CAAQ国际权威有机认证，CE认证！对于U牌而言，品质是不容触碰的底线，除此之外，一切放开玩！【U牌玩精油】、【U-face】芳疗护肤、【U-WM】私密养护系列，三大系列火爆持续中！',
					link : 'http://webChat.5288168.com/ShopCenter/ShopHomepage.aspx?State=100008&ReferMemberId=1000083001009177',
					imgUrl : 'http://www.5288168.com:8080/Attachment/Temp/b9d49555-d6bb-4c76-b547-e9c760bee3cb.jpg',
					success : function() {
					},
					cancel : function() {
					}
				});
	}

	initconfig(); */
</script>
</head>
<body>
	<div class="p_delete">
		<div class="sub_div">
			<a href="javascript:void(0)">
				<div class="check_btn fl "></div>
			</a>
			<div class="sumM_cart fl">
				<span id="spanTitleSum">我的收藏（${fn:length(list)}）</span>
			</div>
			<div class="pull-right">
				<!-- <button class="btn btn-default btn-sm " id="btnDel" type="submit">
					删除</button>
				&nbsp;&nbsp; -->
			</div>
		</div>
	</div>
	<div class="mwrap">
		<div class="cart_box">
			<div class="cart_list">
				<c:choose>
					<c:when test="${empty list}">
						<div id="no_cart" class="no_cart">
							<img width="80" height="80"
								src="<%=basePath%>views/images/empty-cart.png">
							<p>你还没有收藏过商品呢，赶紧去看看吧！</p>
							<p>
								<a href="../mobile/home"><input type="button"
									class="btn-color go_shopping btn" value="去逛逛"></a>
							</p>
						</div>
					</c:when>
					<c:otherwise>
						<ul id="cart">
							<c:forEach items="${list}" var="collect">
								<li id="collect${collect.c_id}"><a
									href="../mobile/goodsdetail?id=${collect.good.id}"><div
											class="cart_good rel">
											<div class="pic fl">
												<img src="<%=imagePath %>${collect.good.image}">
											</div>
											<div class="info">
												<p class="cartName">
													<span>${collect.good.name}</span><span class="goods_spec"></span>&nbsp;&nbsp;&nbsp;&nbsp;
													<%-- <a href="javascript:void(0);"
														onclick="delcollect(${collect.c_id})">删除</a> --%>
													<img width="20" height="30"
														src="<%=basePath%>views/upai/images/fchu_03.png"
														class="dw_imgs" onclick="delcollect(${collect.c_id})" />
												</p>
												<p>
													<span class="word-color">￥${collect.good.product.price}</span>
												</p>
											</div>
										</div></a></li>
							</c:forEach>
						</ul>
					</c:otherwise>
				</c:choose>
			</div>
		</div>
	</div>
	<!--footer -->
	<div class="footer"></div>
	<script type="text/javascript"
		src="<%=basePath%>views/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript"
		src="<%=basePath%>views/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>views/js/layer.m.js"></script>
	<script type="text/javascript"
		src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script type="text/javascript" src="<%=basePath%>views/js/CommonJS.js"></script>
	<script type="text/javascript"
		src="<%=basePath%>views/js/WeiXin/WeChatJS-SDK.js"></script>
	<%-- <script type="text/javascript"
		src="<%=basePath%>views/js/MemberCenter/MyCollect.js"></script> --%>
</body>
<script>
	function delcollect(id){
		$.ajax({
			type:"post",
			url:"../mobile/delConllection?c_ids="+id,
			success:function(msg){
				var info = eval('('+msg+')');
				window.location.reload();
			}
		})
	}
</script>
</html>
